import request from '@/utils/request'

export function getResourcesList(token, params) {
  return request({
    url: '/system/resources/list',
    method: 'post',
    data: params
  })
}

export function addResources(token, params) {
  return request({
    url: '/system/resources/add',
    method: 'post',
    data: params
  })
}

export function updateResources(token, params) {
  return request({
    url: '/system/resources/update',
    method: 'post',
    data: params
  })
}

export function getSingleResource(token, params) {
  return request({
    url: '/system/resources/selectByPrimaryKey',
    method: 'post',
    data: params
  })
}

export function deleteResources(token, params) {
  return request({
    url: '/system/resources/delete',
    method: 'post',
    data: params
  })
}

